package com.jieshuibao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jieshuibao.model.db.ArticleUserKey;
import com.jieshuibao.model.domain.Article;
import com.jieshuibao.model.domain.ArticleCategory;
import com.jieshuibao.model.domain.PagePhone;

public interface ArticleMapper {
	public List<Article> selectArticel(@Param(value="pageIndex")int pageIndex,@Param(value="pageSize")int pageSize);
	
	//查询文章标签
	public List<ArticleCategory> selectCategoryByPid(@Param(value="pid")String pid);
	//根据id查一个
	public Article selectArticleById(@Param(value="articleId")String articleId);
	//查询收藏文章
	public ArticleUserKey selectArticleUserById(ArticleUserKey articleUserKey);
	//收藏文章列表
	public List<Article> selectCollection(PagePhone pagePhone);
	//根据标签查询文章
	public List<Article> selectArticleByCategoryId(PagePhone pagePhone);
	//最热文章
	public List<Article> selectHotArticle(PagePhone pagePhone);
	//删除文章
	public void updateDelFlag(@Param(value="id")String id);
	//查询一个人下的所有文章
	public List<Article> selectArticleByPhone(PagePhone pagePhone);
	//搜索
	public List<Article> selectSearchArticle(PagePhone pagePhone);


}
